<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted(){
    let _this = this;
    window.onresize = () => {
      _this.$store.commit("windowResize", {
        innerWidth: window.innerWidth,
        innerHeight: window.innerHeight
      });
    };
  }
}
</script>

<style lang="less">
.size{
  width: 100%;
  height: 100%;
}
html,body{
  .size;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
#app {
  .size;
}
</style>
